package lab02.test04;

/**
 * Created by 14394 on 2017/10/15.
 */
public class Worker {
    private String name;
    private int number;
    private float baseSalary;
    private float deduction;

    public Worker(String name, int number, float baseSalary, float deduction) {
        this.name = name;
        this.number = number;
        this.baseSalary = baseSalary;
        this.deduction = deduction;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public float getBaseSalary() {
        return baseSalary;
    }

    public void setBaseSalary(float baseSalary) {
        this.baseSalary = baseSalary;
    }

    public float getDeduction() {
        return deduction;
    }

    public void setDeduction(float deduction) {
        this.deduction = deduction;
    }

    public float getTotalSalary(){
        return  baseSalary+deduction;
    }
}
